<?php
if(isset($_POST['btnSO'])) {
$nric = $_POST['btnSO'];
}


include 'conn.php';

$sql = "UPDATE attendancerecord SET SignOutTimeStamp=NOW() WHERE NRIC='$nric' AND DATE(SignInTimeStamp)= CURDATE()";
$result = @mysql_query($sql);
?>